module.exports = {
  devServer: {
    open: true,
    host: "localhost",
    port: 1010,
    overlay: {
      warnings: false,
      errors: true
    },
    proxy: {
      "/api": {
        // 设置调用的接口域名和端口
        target: "http://localhost:9999",
        secure: false,
        changeOrigin: true, // 是否跨域
        ws: true, // websocket支持
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
